package com.aspose.cells;

class zblw extends zck {
   zblw(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.zq b(com.aspose.cells.b.a.b.zq var1) {
      float var2 = this.e.v().h();
      float var3 = this.e.v().i();
      float var4 = 0.0F;
      float var5 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var4 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) * var3 / 100000.0F;
            var5 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) * var2 / 100000.0F;
         } else {
            var4 = 12500.0F * var3 / 100000.0F;
            var5 = 0.0F * var2 / 100000.0F;
         }
      } else {
         var4 = 12500.0F * var3 / 100000.0F;
         var5 = 0.0F * var2 / 100000.0F;
      }

      var1.a(var1.f() + 2.0F * var5 + this.e.x().f());
      var1.c(var1.h() - 4.0F * var5 + 2.0F * this.e.x().f());
      var1.b(var1.g() + 2.0F * var4 + this.e.x().f());
      var1.d(var1.i() - 4.0F * var4 + 2.0F * this.e.x().f());
      return var1;
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = this.e.s();
      float var3 = this.e.t();
      float var4 = this.e.q();
      float var5 = this.e.r();
      return this.a(var2, var3, var4, var5);
   }

   private com.aspose.cells.b.a.b.a.ze a(float var1, float var2, float var3, float var4) {
      com.aspose.cells.b.a.b.a.ze var5 = new com.aspose.cells.b.a.b.a.ze();
      float var6 = 0.0F;
      float var7 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var6 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) * var4 / 100000.0F;
            var7 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) * var3 / 100000.0F;
         } else {
            var6 = 12500.0F * var4 / 100000.0F;
            var7 = 0.0F * var3 / 100000.0F;
         }
      } else {
         var6 = 12500.0F * var4 / 100000.0F;
         var7 = 0.0F * var3 / 100000.0F;
      }

      float var8 = var3 - 2.0F * Math.abs(var7);
      if (this.e.R() == this.e.Q()) {
         if (var7 >= 0.0F) {
            var5.a(var1, var2 + var6, var1 + var8 / 2.0F, var2 - 2.0F * var6, var1 + 1.0F * var8 / 2.0F, var2 + 4.0F * var6, var1 + var8, var2 + var6);
            var5.a(var1 + var3, var2 + var4 - var6, var1 + 2.0F * Math.abs(var7) + 1.0F * var8 / 2.0F, var2 + var4 + 2.0F * var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 + var4 - 4.0F * var6, var1 + 2.0F * Math.abs(var7), var2 + var4 - var6);
            var5.i();
         } else {
            var5.a(var1 + 2.0F * Math.abs(var7), var2 + var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 - 2.0F * var6, var1 + 2.0F * Math.abs(var7) + var8 / 2.0F, var2 + 4.0F * var6, var1 + var3, var2 + var6);
            var5.a(var1 + var8, var2 + var4 - var6, var1 + var8 / 2.0F, var2 + var4 + 2.0F * var6, var1 + var8 / 2.0F, var2 + var4 - 4.0F * var6, var1, var2 + var4 - var6);
            var5.i();
         }
      }

      return var5;
   }
}
